package com.zyy.security.mapper;

import com.zyy.security.entity.SysUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 *@author zhangyangyang
 *@createTime 2023419 19:05
 *@description 
 */
@Repository
public interface SysUserMapper {
    @Select("SELECT * FROM sys_user WHERE id = #{id}") SysUser selectById(Integer id);

    @Select("SELECT * FROM sys_user WHERE name = #{name}")
    SysUser selectByName(String name);
}
